<!doctype html>
{php}
    $static = '/static/home/';
{/php}
<!--[if IE 7]> <html lang="en" class="ie7"> <![endif]-->
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <title>{$siteConfig['seo_title']}</title>
    <meta name="apple-mobile-web-app-title" content="{$siteConfig['seo_title']}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="{$static}images/favicon.ico">
    <link href="{$static}css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="{$static}css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="{$static}css/app.min.css" rel="stylesheet" type="text/css" />
    <link href="{$static}css/style.css" rel="stylesheet" type="text/css" />
</head>

<body data-sidebar="dark">

<!-- Begin page -->
<div id="layout-wrapper">

    {include file='public/mine_topbar' /}
    {include file='public/mine_left' /}

    <!-- ============================================================== -->
    <!-- Start right Content here -->
    <!-- ============================================================== -->
    <div class="main-content">

        <div class="page-content">
            <div class="container-fluid">

                <!-- start page title -->
                <div class="row">
                    <div class="col-12">
                        <div class="page-title-box d-flex align-items-center justify-content-between">
                            <h4 class="mb-0 font-size-18"><i class="mdi mdi-settings-transfer"></i> 账户设置</h4>

                            <div class="page-title-right">
                                <ol class="breadcrumb m-0">
                                    <li class="breadcrumb-item"><a href="javascript: void(0);">鹰眼短链</a></li>
                                    <li class="breadcrumb-item"><a href="javascript: void(0);">账户设置</a></li>
                                </ol>
                            </div>

                        </div>
                    </div>
                </div>
                <!-- end page title -->

                <div class="row">
                    <div class="col-xl-6 col-md-6">
                        <div class="card plan-box">
                            <div class="card-body p-4">
                                <div class="media mb-1">
                                    <div class="avatar-xs mr-3">
                                        <span class="avatar-title rounded-circle bg-primary">
                                            <i class="ti-package"></i>
                                        </span>
                                    </div>
                                    <div class="media-body">
                                        <h5 class="font-size-16">SecretID</h5>
                                        <p class="text-muted"> {$userInfo['secretId']}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-6 col-md-6">
                        <div class="card plan-box">
                            <div class="card-body p-4">
                                <div class="media mb-1">
                                    <div class="avatar-xs mr-3">
                                        <span class="avatar-title rounded-circle bg-primary">
                                            <i class="mdi mdi-key-star"></i>
                                        </span>
                                    </div>
                                    <div class="media-body">
                                        <h5 class="font-size-16">SecretKey</h5>
                                        <p class="text-muted">
                                            <span class="secret-key">**************************************</span>
                                            <a href="javascript:void(0)" class="js-display-hidden" data-tag="false">显示</a>
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-6 col-md-6">
                        <div class="card plan-box">
                            <div class="card-body p-4">
                                <div class="media mb-1">
                                    <div class="avatar-xs mr-3">
                                        <span class="avatar-title rounded-circle bg-primary">
                                            <i class="mdi mdi-shield-lock"></i>
                                        </span>
                                    </div>
                                    <div class="media-body">
                                        <h5 class="font-size-16">基本资料</h5>
                                        <p class="text-muted">查看和修改账户的基本资料</p>
                                    </div>
                                </div>
                                <div class="py-4">
                                    <div class="plan-btn">
                                        <a href="{:url('account/info')}" class="btn btn-primary waves-effect waves-light">修改资料</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-6 col-md-6">
                        <div class="card plan-box">
                            <div class="card-body p-4">
                                <div class="media mb-1">
                                    <div class="avatar-xs mr-3">
                                        <span class="avatar-title rounded-circle bg-primary">
                                            <i class="mdi mdi-shield-lock"></i>
                                        </span>
                                    </div>
                                    <div class="media-body">
                                        <h5 class="font-size-16">修改密码</h5>
                                        <p class="text-muted">修改当前账号的登录密码</p>
                                    </div>
                                </div>
                                <div class="py-4">
                                    <div class="plan-btn">
                                        <a href="{:url('account/changePassword')}" class="btn btn-primary waves-effect waves-light">修改密码</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- end row -->

            </div> <!-- container-fluid -->
        </div>
        <!-- End Page-content -->

    </div>
    <!-- end main content-->

</div>
<!-- END layout-wrapper -->


<!-- JAVASCRIPT -->
<script src="{$static}libs/jquery/jquery.min.js"></script>
<script src="{$static}libs/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="{$static}libs/metismenu/metisMenu.min.js"></script>
<script src="{$static}libs/simplebar/simplebar.min.js"></script>
<script src="{$static}libs/node-waves/waves.min.js"></script>

<script src="{$static}js/app.js"></script>
<script type="text/javascript">
    $('.js-display-hidden').on('click', function () {
        var secretKey = "{$userInfo['secretKey']}";
        var tag = $(this).data('tag');
        if(tag === false) {
            $(".secret-key").html(secretKey);
            $(this).html('隐藏');
            $(this).data('tag',true);
        }else{
            $(".secret-key").html('**********************************');
            $(this).html('显示');
            $(this).data('tag',false);
        }
    });
</script>
</body>
</html>
